package com.qf.hystrix02.fegin;

import com.qf.service.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: Song
 * @Date: 2022-03-19 17:25
 */
@FeignClient(value = "storage",fallback = BookServiceFallback.class)
public interface BookService {


    @GetMapping("/book/")
    Book getBookById(@RequestParam("id") Integer id);
}
